Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 5 - Printing Functions for Message Overrides / Printing Functions Reference
Functions / Managing Paper Trays


GXGetTrayPaperType

You can use the GXGetTrayPaperType function to retrieve the paper-type information for a specific paper tray on the printer.

OSErr GXGetTrayPaperType (gxTrayIndex whichTray,
                           gxPaperType paper);
whichTray
The number of the tray in which you are interested.
paper
A reference to a paper-type object that you have already allocated. On return, this object contains information about the paper that is in the specified tray.
function result
An error code. The values noErr indicates that the operation was successful. The value resNotFound indicates that the tray is not configured and that its paper type is displayed to the user as "Unknown."
DESCRIPTION
The GXGetTrayPaperType function fills in the fields of a paper-type object with information from the desktop printer.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
gxPaperTypeNotFoundThe specified paper type could not be found.
gxNoSuchPTGroupThe specified paper type could not be found.
SEE ALSO
You can read about managing paper trays in the section "Managing Paper Trays and Their Paper Types" beginning on page 5-5.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help